package cc.czlee.cloud.demo.service;

import cc.czlee.cloud.model.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/*
 * Create by Colbert on 2019-05-01
 *
 * Copyright (C) 2019 chuanzhigo@gmail.com.
 */
@Component
public class UserFeignClientFallback implements UserFeignClient {

    private final Logger logger = LoggerFactory.getLogger(UserFeignClientFallback.class);

    @Override
    public boolean login(User user) {
        logger.warn("user feign client fallback");
        return false;
    }

    @Override
    public String login(int count) {
        return "user feign client fallback";
    }
}
